package com.carey.myblog.service;

import com.carey.myblog.pojo.Tag;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
* @author carey-
* @description 针对表【t_tag】的数据库操作Service
* @createDate 2022-05-25 22:09:57
*/
public interface TagService extends IService<Tag> {

    Integer saveTag(Tag tag);

    Tag getTag(Long id);

    Tag getTagByName(String name);

    Page<Tag> listTag(Pageable pageable);

    List<Tag> listTag();

    List<Tag> listTagTop(Integer size);

    List<Tag> listTag(String ids);

    Integer updateTag(Long id,Tag tag);

    void deleteTag(Long id);
}
